package com.zb.controller;

import com.zb.service.PageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>添加描述信息</p>
 *
 * @author 李柯
 * @since 2022年11月09日 10:02
 */
@RestController
@RequestMapping("/item")
public class ItemController {
    @Autowired
    private PageService pageService;

    @GetMapping("/create/{skuId}")
    public String create(@PathVariable("skuId")String skuId){
        pageService.createPage(skuId);
        return "success";
    }
}
